package com.java.simple.study.jvm.stringtable;

/**
 * @author zhoujunlin
 * @date 2022年08月29日 22:50
 * @desc
 */
public class StringExer {

    String str = new String("good");
    char[] ch = {'t', 'e', 's', 't'};

    public void change(String str, char[] ch) {
        str = "test ok";
        ch[0] = 'b';
    }

    public static void main(String[] args) {
        StringExer stringExer = new StringExer();
        stringExer.change(stringExer.str, stringExer.ch);
        System.out.println(stringExer.str);
        System.out.println(stringExer.ch);
    }

}
